package com.cherry.mybatis;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

import java.util.Date;
import java.util.List;

@Getter
@Setter
@ToString
public class Emp {

    private long id;
    private String name;
    private String gender;
    private Double salary;
    private Date join_date;
    private Long dept_id;

    //属于哪一个部门
    private Dept dept;

    //一个员工多个职位角色
    private List<Role> roleList;

    public Emp() {
    }



    public Emp(String name, String gender, Double salary, Date join_date, long dept_id) {
        this.name = name;
        this.gender = gender;
        this.salary = salary;
        this.join_date = join_date;
        this.dept_id = dept_id;
    }

}
